﻿using System.Collections.Generic;
using CoreLibrary.Repo;
using Entities.DataBase.Obj;
using Entities.DataBase.Persistent;

namespace Entities.DataBase {

    public interface IProductRepository : IRepository<Product> {

        void Add(Product product);
        void Remove(string productId);
        void Update(string productId, ProductUpdator updator);

        Product GetProduct(string productId);
        List<Product> List(int catId, int offset, int limit);
        List<Product> List(string keyword);
        
    }
}